using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblDapAn
	{
	private int stt;
	private int idNHCH;
	private string img;
	private string media;
	private string noidung;
	public tblDapAn()
	{}
	public tblDapAn(int stt,int idNHCH,string img,string media,string noidung)
	{
	this.stt = stt;
	this.idNHCH = idNHCH;
	this.img = img;
	this.media = media;
	this.noidung = noidung;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdNHCH{
	get { return this.idNHCH;}
	set {this.idNHCH=value;}
	}
	public string Img{
	get { return this.img;}
	set {this.img=value;}
	}
	public string Media{
	get { return this.media;}
	set {this.media=value;}
	}
	public string Noidung{
	get { return this.noidung;}
	set {this.noidung=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idNHCH+"; "+this.img+"; "+this.media+"; "+this.noidung+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblDapAn me=(tblDapAn)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 